import { SwaggerDefinition } from 'swagger-jsdoc';

export const swaggerDefinition: SwaggerDefinition = {
  openapi: '3.0.0',
  info: {
    title: 'API文档',
    version: '1.0.0',
    // description: 'This is a simple Koa API with Swagger documentation'
  },
  // servers: [
  //   {
  //     url: 'http://localhost:3000',
  //     description: 'Local development server'
  //   }
  // ],
  components: {
    securitySchemes: {
      customHeader: {
        type: 'apiKey',
        in: 'header',
        name: 'authorizationtoken', // 替换为你的自定义头名称
        description: '这里是tocken' // 输入框提示文字
      }
    }
  },
  security: [{
    customHeader: [] // 全局应用
  }]

};